Skip to content

feat: Add local flag overrides using dev server - #837

Merged
nieblara merged 1 commit into
mainfrom
db/dev-server-override-file
Oct 5, 2026
Merged

nieblara merged 1 commit into
mainfrom
db/dev-server-override-file

Conversation

@davidbrackbill

@davidbrackbill davidbrackbill commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Changes

Overriding a flag key before the flag exists in the upstream environment is now allowed. This is useful for agents to play around with flag values before actually creating a flag in Catamorphic.

Local flags get shown with a local chip and a checkbox appears for filtering them only when local flags exist. Most consumers will not see any UI differences.

Also greys out the overrides filter when no overrides exist.

Demo

flags.local.mov

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f1ff359. Configure here.

Comment thread internal/dev_server/model/override.go Resolved
Comment thread internal/dev_server/override_file.go Resolved
Overriding a flag key that hasn't been synced now serves it as a local
flag instead of returning "flag not found", so code can be run against a
flag before it exists upstream.

Local flags get shown with a local chip and a checkbox appears for
filtering them only when local flags exist. Most consumers will not
see any UI differences.

Also greys out the overrides filter when no overrides exist.

Claude <claude@anthropic.com>
@davidbrackbill
davidbrackbill force-pushed the db/dev-server-override-file branch from f1ff359 to 94c0d77 Compare October 2, 2026 00:26
@davidbrackbill davidbrackbill changed the title feat(dev-server): live overrides from a file, including flags not in the source environment feat: Add local flag overrides using dev server Oct 2, 2026
@davidbrackbill
davidbrackbill marked this pull request as ready for review October 2, 2026 00:30
@davidbrackbill
davidbrackbill requested a review from a team as a code owner October 2, 2026 00:30

@zakk-verrilli-ld zakk-verrilli-ld left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is cool but why not just create the flag in Catamorphic upfront?

@davidbrackbill

davidbrackbill commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor Author

This is cool but why not just create the flag in Catamorphic upfront?
@zakk-verrilli-ld

If your agent doesn't have that access, it can't test the code paths. If you work by making a bunch of draft PRs or iterations and then taking the best one, you'll have a lot of orphaned flags.

@nieblara
nieblara merged commit 6c1740f into main Oct 5, 2026
13 checks passed
@nieblara
nieblara deleted the db/dev-server-override-file branch October 5, 2026 19:14
davidbrackbill added a commit that referenced this pull request Oct 5, 2026
Revert "feat: Add local flag overrides using dev server (#837)"

This reverts commit 6c1740f.
nieblara added a commit that referenced this pull request Oct 28, 2026
…t fix (#851)

* Revert "fix: Add local flag overrides using dev server (#837) (#850)"

This reverts commit 9197f92.

* fix: reset the override and local flag filters when they no longer apply

The filter state stayed set after the last override went away. A new
override then turned the filter on again and hid other flags. Two
effects now reset each filter when its condition is false.

Add tests for both filters.

Co-authored-by: Ramon Niebla <nieblara@users.noreply.github.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Ramon Niebla <nieblara@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants